<?php if (!defined('THINK_PATH')) exit(); /*a:7:{s:71:"D:\wamp\www\blog\public/../application/index\view\tagArctile\index.html";i:1519883046;s:57:"D:\wamp\www\blog\application\index\view\index\header.html";i:1520344705;s:57:"D:\wamp\www\blog\application\index\view\index\banner.html";i:1519825597;s:55:"D:\wamp\www\blog\application\index\view\index\main.html";i:1519780896;s:55:"D:\wamp\www\blog\application\index\view\index\left.html";i:1519905511;s:56:"D:\wamp\www\blog\application\index\view\index\right.html";i:1520255002;s:57:"D:\wamp\www\blog\application\index\view\index\footer.html";i:1519956669;}*/ ?>
<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="utf-8">
    <title>首页 </title>

    <!--移动设备优先-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="keywords" content="博客" />
    <meta name="description" content="我的生活，个人博客" />
    <link rel="stylesheet" type="text/css" href="/static/index/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="/static/index/css/my.css" />
    <link rel="stylesheet" type="text/css" href="/static/index/css/font_1477105914_3430886.css">
    <link rel="stylesheet" type="text/css" href="/static/index/css/timesroll.css">
    <script src="/static/index/js/jquery-1.10.1.min.js" ></script>
    <script src="/static/index/js/scrollReveal.js"></script>
    <script src="/static/index/js/modernizr.js"></script>
</head>
<body>


<div class="container">
    <nav class="navbar navbar-default">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only">导航</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand visible-xs" href="#">博客导航</a>
        </div>
        <div class="collapse navbar-collapse menu" id="bs-example-navbar-collapse-1">
            <div class="navbar-header navbar-left">
                <a class="navbar-brand" href="<?php echo url('index/index/index'); ?>">
                    <img alt="Brand" src="/static/index/images/logo.jpg" width="100">
                </a>
            </div>
            <ul class="nav navbar-nav navbar-right">
                <li class="menu-active"><a href="<?php echo url('index/index/index'); ?>">首页</a></li>
                <?php if(is_array($cate) || $cate instanceof \think\Collection || $cate instanceof \think\Paginator): $i = 0; $__LIST__ = $cate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$cate): $mod = ($i % 2 );++$i;?>
                <li class="dropdown ">
                    <a href="/"  data-hover="dropdown"><?php echo $cate['cname']; ?></a>
                    <ul class="dropdown-menu" role="menu">
                        <?php if(is_array($cate['cate2']) || $cate['cate2'] instanceof \think\Collection || $cate['cate2'] instanceof \think\Paginator): $i = 0; $__LIST__ = $cate['cate2'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$cate2): $mod = ($i % 2 );++$i;?>
                        <li><a href="/category/<?php echo $cate2['id']; ?>" ><i class="icon-ok-sign"></i> <?php echo $cate2['cname']; ?></a></li>
                        <li class="divider"></li>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                </li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
                <li class="menu-active"><a href="<?php echo url('index/personal/review'); ?>">留言</a></li>
                <li class="menu-active"><a href="http://nodejs.lyang.top">相册</a></li>
                <?php echo empty(\think\Session::get('user')) && empty(\think\Session::get('qq')) ? "<li><a href=".url('index/login/index').">登录/注册</a></li>" : ''; ?>
                <?php echo empty(\think\Session::get('user')) ? '' : "<li class='dropdown '><a href=".url('index/personal/index')."  data-hover='dropdown'><img width='20' height='20' src=".\think\Session::get('user.figureurl')." class='img-circle'>".\think\Session::get('user.nickname')."</a><ul class='dropdown-menu' role='menu'><li><a href=".url('index/personal/exit')." ><i class='icon-ok-sign'></i> 退出登录</a></li><li class='divider'></li></ul></li>"; ?>
                <?php echo empty(\think\Session::get('qq')) ? '' : "<li class='dropdown '><a href=''  data-hover='dropdown'><img width='20' src=".\think\Session::get('qq.figureurl')." class='img-circle'>".\think\Session::get('qq.nickname')."</a><ul class='dropdown-menu' role='menu'><li><a href=".url('index/personal/exit')." ><i class='icon-ok-sign'></i> 退出登录</a></li><li class='divider'></li></ul></li>"; ?>

            </ul>
            <div class="menu-bar"></div>
            <div class="menu-clean"></div>
        </div>
    </nav>
</div>
<!--头部结束-->
<div class="container catebox">
    <div class="row aerousel">
        <!-- 轮播开始 -->
        <script src="/static/index/js/jquery.banner.js"></script>
        <ul class="hiSlider container hidden-xs banner">
            <?php if(is_array($banner) || $banner instanceof \think\Collection || $banner instanceof \think\Paginator): $i = 0; $__LIST__ = $banner;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$banner): $mod = ($i % 2 );++$i;?>
            <li class="hiSlider-item" data-title="<?php echo $banner['title']; ?>"><a href="<?php echo $banner['link']; ?>" target="_blank"><img src="/static/upload/banner/<?php echo $banner['pic']; ?>" alt="<?php echo $banner['title']; ?>"></a></li>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </ul>
        <script>
            $('.banner').hiSlider({
                isFlexible: true,
                isSupportTouch: true,
                isShowControls: false,
                titleAttr: function(){
                    return $('img', this).attr('alt');
                }
            });
        </script>
    </div>
</div>
<div class="container">
    <div class="row">
        <div class="col-md-8">
            <ul class="cbp_tmtimeline" id="arc_box">
    <?php if(is_array($arc) || $arc instanceof \think\Collection || $arc instanceof \think\Paginator): $i = 0; $__LIST__ = $arc;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$info): $mod = ($i % 2 );++$i;?>
    <li>
        <time class="cbp_tmtime hidden-xs" ><span><?php echo Date('m-d',$info['release_time']); ?></span> <span><?php echo Date('Y',$info['release_time']); ?></span></time>
        <div class="cbp_tmicon hidden-xs"></div>
        <div class="cbp_tmlabel" data-scroll-reveal="enter right over 1s" >
            <h2><?php echo $info['title']; ?></h2>
            <p><span class="blogpic hidden-xs"><img src="/static/upload/arc/<?php echo $info['thumb']; ?>"></span><?php echo $info['desc']; ?></p>
            <a href="/content/<?php echo $info['id']; ?>" class="readmore">阅读全文&gt;&gt;</a>
        </div>
    </li>
    <?php endforeach; endif; else: echo "" ;endif; ?>
</ul>

<script>
    if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))){
        (function(){
            window.scrollReveal = new scrollReveal({reset: true});
        })();
    };

</script>
        </div>
        <div class="col-md-4">
            <div class="sider-margin sider-box">
    <div class="sider-search">
        <div class="input-group sider-search-input">
            <form class="form-search">
                <input type="text" class="form-control sider-search-input" id="search" placeholder="请输入关键词" name="tag">
                <span class="input-group-btn">
                    <button class="btn btn-default btn-search" type="button"><i class="iconfont icon-search search"></i></button>
                </span>
            </form>
        </div>
    </div>
</div>
<script>
    $('.btn-search').click(function(){
        var tag = $('#search').val();
        if(tag !== ''){
            $.ajax({
                type : 'post',
                data : {'tag':tag},
                datatype : 'json',
                url : "<?php echo url('index/index/search'); ?>",
                success : function(data){
                   $('#arc_box').html(data);
                }

            });
        }else{
            alert('请输入关键词');
        }
    });

    $("#search").keyup(function(){
        var tag = $('#search').val();
        
            $.ajax({
                type : 'post',
                data : {'tag':tag},
                datatype : 'json',
                url : "<?php echo url('index/index/search'); ?>",
                success : function(data){
                   $('#arc_box').html(data);
                }

            });
        
    });

</script>
<div class="sider-margin sider-box">
    <h4><i class="iconfont icon-tags"></i>&nbsp;&nbsp;我的标签</h4>
    <ul class="sider-tag-ul">
        <?php if(is_array($tag) || $tag instanceof \think\Collection || $tag instanceof \think\Paginator): $i = 0; $__LIST__ = $tag;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$tag): $mod = ($i % 2 );++$i;?>
        <li class="label label-danger sider-tag-end "><a href="/tagArctile/<?php echo $tag['id']; ?>"><?php echo $tag['tname']; ?></a></li>
        <?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
</div>

<div class="sider-box">
    <h4><i class="iconfont icon-review"></i>&nbsp;&nbsp;最新互动</h4>
    <div class="tab"  id="tab">
        <ul class="nav nav-tabs" >
            <li class="active"><a href="#art" data-toggle="tab">最新文章</a></li>
            <li><a href="#con" data-toggle="tab">最热文章</a></li>
            <li><a href="#hot" data-toggle="tab">点赞最多</a></li>
        </ul>
    </div>
</div>
<div class="sider-box">
    <div class="tab-content">
        <div class="tab-pane fade in active" id="art">
            <ul class="sider-content-ul">
                <?php if(is_array($newArc) || $newArc instanceof \think\Collection || $newArc instanceof \think\Paginator): $i = 0; $__LIST__ = $newArc;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$info): $mod = ($i % 2 );++$i;?>
                <li style="min-height: 30px;line-height: 30px;"><a style="color: #0b6cbc;" href="/content/<?php echo $info['id']; ?>" ><?php echo $info['title']; ?></a>(<?php echo Date('Y:m:d H:m:s',$info['release_time']); ?>)</li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
        <div class="tab-pane fade" id="con">
            <ul class="sider-content-ul">
                <?php if(is_array($hotArc) || $hotArc instanceof \think\Collection || $hotArc instanceof \think\Paginator): $i = 0; $__LIST__ = $hotArc;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$info): $mod = ($i % 2 );++$i;?>
                <li  style="min-height: 30px;line-height: 30px;"><a style="color: #0b6cbc;" href="/content/<?php echo $info['id']; ?>" ><?php echo $info['title']; ?></a>(<?php echo $info['browse_num']; ?>人次浏览)</li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
        <div class="tab-pane fade" id="hot">
            <ul class="sider-hot-ul">
                <?php if(is_array($praiseArc) || $praiseArc instanceof \think\Collection || $praiseArc instanceof \think\Paginator): $i = 0; $__LIST__ = $praiseArc;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$info): $mod = ($i % 2 );++$i;?>
                <li ><a style="color: #0b6cbc;" href="/content/<?php echo $info['id']; ?>" ><?php echo $info['title']; ?></a>(<?php echo $info['praise_num']; ?>个赞)</li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
    </div>
</div>
        </div>
    </div>
</div>
<!--底部开始-->
<div class="container-foot">
   
    <div class="row foot-margin">
    	<div class="col-md-2 col-md-offset-5" style="line-height: 30px;">版权所有&copy;&nbsp;&nbsp;&nbsp;&nbsp;皖ICP备18000438号-1</div>
    </div>

</div>
<!--底部结束-->
<script src="/static/index/js/bootstrap.js"></script>
<script src="/static/index/js/common.js"></script>


</body>
</html>
